package org.expressme.webwind.template;

import java.util.logging.Level;
import java.util.logging.Logger;
import org.expressme.webwind.Config;

/**
 * TemplateFactory which uses JSP.
 * 
 * @author Michael Liao (askxuefeng@gmail.com)
 */
public class JspTemplateFactory extends TemplateFactory {

	private Logger log = Logger.getLogger(JspTemplateFactory.class.getName());

	public Template loadTemplate(String path) throws Exception {
		if (log.isLoggable(Level.FINEST))
			log.finest("Load JSP template '" + path + "'.");
		return new JspTemplate(path);
	}

	public void init(Config config) {
		log.info("JspTemplateFactory init ok.");
	}

}
